// 封装fetch的文件
export const myGet = (url) => {
  return fetch(url)
    .then(res => res.json())
}

export const myPost = (url, data) => {
  return fetch(url, {
    method: 'post',
    data: data
  })
  .then(res => res.json())
}
